<%@ include file="/page/include.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="zug" tagdir="/WEB-INF/tags"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>组织管理</title>

<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
</head>	
 <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="framebody" role="main">
        	<div class="page-title">
              <div class="title_left">
                <h3>组织管理</h3>
                <input id="optCode" value="" type="hidden">
              </div> 
            </div>
            <div class="clearfix"></div>
        	<div class="row">
              <div class="col-md-3 col-sm-3 col-xs-3" >
                <div class="x_panel" style="height:90%;">
                	<div class="x_content">
                		<div class="row" >
						   <ul id="orgTree" class="ztree"></ul>
			            </div>
                	</div>
                </div>
              </div>
              <div class="col-md-9 col-sm-9 col-xs-9" id="orgInfo" style="display: none;">
              	<div class="x_panel" style="height:90%;">
                  <div class="x_content">
                    <form class="form-horizontal form-label-left" novalidate id="ajaxForm" method="post" enctype="multipart/form-data">
                      <span class="section">修改组织</span>

                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgCode">组织编号:
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                           <div  id="orgCode" name="orgCode" style="padding-top: 5"></div>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="parentName">上级组织：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input id="orgId" name="orgId" type="hidden" value="" />
                          <input id="parentId" name="parentId" type="hidden" value="" />
                          <input type="text" id="parentName" name="parentName"  readonly="readonly" class="dropDownTreeMenu form-control col-md-3 col-xs-12">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgName"><span class="required"><font color="red">*</font></span>组织名称：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="orgName" name="orgName" class="form-control col-md-3 col-xs-12">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgStatus">状态：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                               <select class="selectpicker form-control col-md-3 col-xs-12" id="orgStatus" name="orgStatus">
                               </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="deptHead">部门主管：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                               <select class="selectpicker form-control col-md-3 col-xs-12" id="deptHead" name="deptHead" title="请选择" data-live-search="true">
                               </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="deptLeader">部门分管领导：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                               <select class="selectpicker form-control col-md-3 col-xs-12" id="deptLeader" name="deptLeader" title="请选择" data-live-search="true">
                               </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="deptAdministrator">部门管理员：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                               <select class="selectpicker form-control col-md-3 col-xs-12" id="deptAdministrator" name="deptAdministrator" title="请选择" data-live-search="true">
                               </select>
                        </div>
                      </div>
                      
                    </form>
					 <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                           <a class="btn btn-primary" id="btnEdit"><i class="fa fa-check fa-fw"></i>保 存</a>
                           <a class="btn btn-danger" id="btnDelete"><i class="fa fa-trash-o fa-lg"></i>删除</a>
                        </div>
                      </div>
                  </div>
                </div>
              </div>
            </div>
       </div>
      </div>
	</div>
<!-- 菜单下拉列表菜单Tree -->
<div id="orgContent" style="display:none; position: absolute;background:#fff;overflow: auto;width:150px; height: 240px; border: 1px solid #aaa; z-index:999">
	<ul id="treeMenu" class="ztree" style="margin-top:0;"></ul>
</div>

</body>
<script src="${rootPath }/statics/plugins/zTree/js/jquery.ztree.all-3.5.min.js"></script>
<script src="${rootPath }/js/auth/org/org_list.js?t=new Date()"></script>
</html>